<div class="col-sm-12 mt20">
    <!-- 搜索栏 -->
    <div class="panel panel-default">
        <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-12">
                <div class="row">
                    <div class="col-lg-2">
                        <input type="text" class="form-control" placeholder="卡类型名称" ng-model="searchform.name">
                    </div>
                    <div class="col-lg-2">
                        <!-- <input type="text" class="form-control" placeholder="卡分类编号" ng-model="searchform.code"> -->
                    </div>
                    <div class="col-lg-2">
                    </div>
                    <div class="col-lg-2">
                    </div>
                    <div class="col-lg-2">
                        <button class="btn btn-info search btn-block" ng-click="loadlist()">立即搜索</button>
                    </div>
                    <div class="col-lg-2">
                        <button class="btn btn-info search btn-block" ng-click="updateCardCategory()">创建卡类型</button>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <!-- 景区卡列表 -->
    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-condensed table-hover table-bordered">
                <thead>
                    <tr>
                        <th class="col-md-4 text-center">名称</th>
                        <th class="col-md-2 text-center">景区</th>
                        <th class="col-md-1 text-center">说明</th>
                        <th class="col-md-2 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="info in cardCategoryList">
                        <td>
                            {{info.name}}
                        </td>
                        <td>
                            {{info.view_name}}
                        </td>
                        <td class="text-center">
                            {{info.remark}}
                        </td>
                        <td class="text-center">
                            <button type="button" class="btn btn-info btn-xs" ng-click="updateCardCategory(info)">编辑</button>
                            <!-- <button type="button" class="btn btn-danger btn-xs" ng-click="deleteCardCategory(info.id)">删除</button> -->
                        </td>
                    </tr>
                </tbody>
            </table>

            <div class="text-right">
                <pagination total-items="totalItems" ng-model="currentPage" ng-change="loadlist()" previous-text="上一页" next-text="下一页" first-text="首页"
                    last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage" class="m-t-none m-b">
                </pagination>
            </div>

        </div>
    </div>

</div>